---
title: AWSBedrockStream
description: Learn to use AWSBedrockStream helper function in your application.
---

# `AWSBedrockStream`

<Note type="warning">
  AWSBedrockStream is part of the [legacy AWS Bedrock
  integration](/providers/legacy-providers/aws-bedrock). It is not compatible
  with the AI SDK 3.1 functions.
</Note>

The AWS Bedrock stream functions are utilties that transform the outputs from the AWS Bedrock API into a ReadableStream. It uses AIStream under the hood and handle parsing Bedrock's response.

## Import

### React

<Snippet text={`import { AWSBedrockStream } from "ai"`} prompt={false} />

<ReferenceTable packageName="streams" functionName="AWSBedrockStream" />
